const CracoLessPlugin = require('craco-less');
const webpack = require('webpack')
const pathResolve = pathUrl => path.join(__dirname, pathUrl)

module.exports = {


  webpack: {
    alias: {
      //'@redux': pathResolve('src/redux')
    },
    plugins: [
      new webpack.ProvidePlugin({
        //process:'process',
        Buffer: ['buffer', 'Buffer'],
        process: require.resolve('process/browser'),
      })
    ]

  },

  plugins: [
    {
      plugin: CracoLessPlugin,
      options: {
        lessLoaderOptions: {
          lessOptions: {
            modifyVars: { '@primary-color': '#1DA57A' },
            javascriptEnabled: true,
          },
        },
      },
    },
  ],

};
